package com.lry.jvm.classfile.attributes;


import com.lry.jvm.classfile.ClassReader;
import com.lry.jvm.classfile.constantpool.ConstantPool;
import lombok.Data;

@Data
public class EnclosingMethod implements AttributeInfo {

    private int classIndex;
    private int methodIndex;

    @Override
    public void readInfo(ClassReader reader) {
        classIndex = reader.nextU2ToInt();
        methodIndex = reader.nextU2ToInt();
    }
}
